libxl: add feature flag to xenstore for XS_RESET_WATCHES
authorOlaf Hering <olaf@aepfle.de>
Thu, 5 Jan 2012 18:40:40 +0000 (19:40 +0100)
committerOlaf Hering <olaf@aepfle.de>
Thu, 5 Jan 2012 18:40:40 +0000 (19:40 +0100)
Tell guest about availibilty of xenstoreds XS_RESET_WATCHES function.
Guests can not issue this command unconditionally because some buggy
toolstacks (such as EC2) do not ignore unknown commands properly.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_create.c
tools/python/xen/xend/XendDomainInfo.py

index 7b6a2f92d29e305b5fac6e9cd8ff66cc9efb35db..815ee7951bd3778f7537c82d6801566b1834d15f 100644 (file)
@@ -452,6 +452,7 @@ retry_transaction:
     libxl__xs_writev(gc, t, libxl__sprintf(gc, "%s/platform", dom_path), info->platformdata);
 
     xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/control/platform-feature-multiprocessor-suspend", dom_path), "1", 1);
+    xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/control/platform-feature-xs_reset_watches", dom_path), "1", 1);
     if (!xs_transaction_end(ctx->xsh, t, 0)) {
         if (errno == EAGAIN) {
             t = 0;
index 9f7c4a30df0a3b73b631303ee2e1f905c1a24f00..456e3259235a5f4a0fb3d19b5656da93f3a4d05f 100644 (file)
@@ -1770,6 +1770,7 @@ class XendDomainInfo:
         f('store/port',       self.store_port)
         f('store/ring-ref',   self.store_mfn)
 
+        f('control/platform-feature-xs_reset_watches', True)
         if arch.type == "x86":
             f('control/platform-feature-multiprocessor-suspend', True)